<%@ include file="../include.jsp" %>

<tiles:insertDefinition name="component.layout.SubPanel">
   <tiles:putAttribute name="title" value="Login" />
   <tiles:putAttribute name="content">

<c:forEach var="providerId" items="${providerIds}">
   <c:set var="connections" value="${connectionMap[providerId]}" />
   <fmt:message var="providerDisplayName" key="social.${providerId}.name" />
   <div class="accountLogin">
      <h4>${providerDisplayName}</h4>
      <p>
      <form action="<c:url value="/login/social/${providerId}.html" />" method="POST">
         <button type="submit"><img src="<c:url value="${imagesDir}" />/social/${providerId}/login.png" /></button>
      </form>
   </div>
</c:forEach>

</tiles:putAttribute>
</tiles:insertDefinition>
